<%@ page import="myoa.permission.ActionNameObj" %>
<html>
<head>
    <meta name="layout" content="freshmade">
</head>

<body>
<div id="content-wrapper">
    <div class="center-wrapper">
        <div class="content">
            <div id="main">
                <div class="post">
                    <div class="post-title">
                        <h1>Role Review</h1>
                        <g:render template="/template/messageBar"/>
                    </div>

                    <div class="post-date">
                        <g:link action="list">List...</g:link>
                    </div>
                </div>

                <div id="myform">
                    <g:each in="${permissionSetting.setting}" var="con">
                        <div class="field">
                            <div class="key2">${con.name}</div>


                            <div class="value-editor">
                                <table class="data-table2">
                                    <tr><th>1</th><th>2</th><th>3</th></tr>
                                    <g:each in="${con.actionNameObjList}" var="act" status="i">
                                        <g:if test="${i % 3 == 0}"><tr></g:if>
                                        <td>
                                            ${act.name}:
                                            <g:each in="${act.roleList}" var="role" status="j">
                                                ${role.name}
                                            </g:each>
                                            <br/>
                                        </td>
                                        <g:if test="${i % 3 == 2}"></tr></g:if>
                                    </g:each>
                                </table>
                            </div>

                            <div class="clear"></div>
                        </div>
                    </g:each>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>